package TechnicalServices;
import DomainPackage.*;
import Foundation.HavalimaniMapper;
import Foundation.KargoBiletMapper;
import Foundation.KargoUcakMapper;
import Foundation.KargoUcusMapper;
import Foundation.MusteriMapper;
import Foundation.PilotMapper;
import Foundation.SatisElemaniMapper;
import Foundation.SeferMapper;
import Foundation.YolcuBiletMapper;
import Foundation.YolcuUcakMapper;
import Foundation.YolcuUcusMapper;
public class MapperFactory {


	public static IMapper getMapper(Object objectClass) {
            // Returns asssociated Mapper
            if (objectClass == YolcuBilet.class)
                    return new YolcuBiletMapper();
            if (objectClass == YolcuUcak.class)
                    return new YolcuUcakMapper();
            if (objectClass == YolcuUcus.class)
                    return new YolcuUcusMapper();
            if (objectClass == KargoBilet.class)
                    return new KargoBiletMapper();
            if (objectClass == KargoUcak.class)
                    return new KargoUcakMapper();
            if (objectClass == KargoUcus.class)
                    return new KargoUcusMapper();
            if (objectClass == Musteri.class)
                    return new MusteriMapper();
            if (objectClass == SatisElemani.class)
                    return new SatisElemaniMapper();
            if (objectClass == Havalimani.class)
                    return new HavalimaniMapper();
            if (objectClass == Sefer.class)
                    return new SeferMapper();
            if (objectClass == Pilot.class)
                    return new PilotMapper();
           
            return null;         
    }

}
